laravel random value from array

62

laravel random value from array -

$k = array_rand($array);
$v = $array[$k];

Comments

Submit
0 Comments